﻿using UnityEngine;
using System.Collections;

public abstract class Seletable : MonoBehaviour {

	public Selection _selection;

	public void ToggleSelection() {
		if (_selection.isSelected ()) {
			Unselect();
		} else {
			Select ();
		}
	}

	public bool IsSelected() {
		return _selection.isSelected ();
	}

	public bool IsHighlighted() {
		return _selection.isHighlighted ();
	}

	public void Unselect()  {
		_selection.Unselect ();
	}
	
	public void Select() {
		_selection.Select();
	}

	public void HighLight() {
		_selection.Highlight();
	}


}
